#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:pengfeifu
@file: day_15_except2.py.py 
@version:
@time: 2021/11/04 
@email:1324734112@qq.com
@desc： 
@function：常用函数
"""
x = -1
if x < 0:
  raise Exception("Sorry, no numbers below zero")

x = "hello"
if not type(x) is int:
  raise TypeError("Only integers are allowed")